package com.addplus.townmall.server.api.mapper.town;

import com.addplus.townmall.server.api.model.town.StoreFundDetail;
import com.addplus.townmall.server.api.utils.BaseAddMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 商城店铺资金详细表 Mapper 接口
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-12-27
 */
public interface StoreFundDetailMapper extends BaseAddMapper<StoreFundDetail> {

    @Select("select count(1) from store_fund_detail where order_id=#{orderId} and order_type=#{orderType}")
    Integer getStorefunddetailCount(@Param("orderId") Integer orderId, @Param("orderType") Integer orderType);

}
